#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
	int arr[200][200] = {0};
	int i, j,n,m,in,flag,s;
	i = 0, j = 0,n=0,m=0,in=0,flag=0,s=0;
	while (scanf("%d", &n) != EOF)
	{
			for (s = 0; s < n * n; s += m)
			{
				scanf("%d", &m);

			}
			for (i = 0; i < n; i++)
			{
				for (j = 0; j < n;j++)
				{
					if (flag == 0)
					{
						for (in = 0; in < m; in++)
						{
							arr[i][j] = 0;
							flag = 1;
						}
					}
					else if (flag == 1)
					{
						for (in = 0; in < m; in++)
						{
							arr[i][j] = 1;
							flag = 0;
						}
					}

				}



			}
		

		for (i = 0; i < n; i++)
		{
			for (j = 0; j < n; j++)
			{

				printf("%d", arr[i][j]);
			}

			printf("\n");


		}





	}




	return 0;
}